﻿using JESAI.DynamicCodeRun.Run;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JESAI.DynamicCodeRun.Providers
{
    internal class DynamicCodeRunProvider : IDynamicCodeRunProvider
    {
        public async Task<CodeRunResult> RunCode(string codeIdentify, string code, string param, int languageVersion, string nugetPackages)
        {
            return CodeRun.Run(codeIdentify, code, param, languageVersion, nugetPackages);
        }

        public async Task<CodeRunResult> RunCode(string codeIdentify, string param)
        {
            return await CodeRun.Run(codeIdentify, param);
        }
    }
}
